package com.date;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/5/2.
 */
public class A {
    public static void main(String[] args) {
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");

        String time = df.format(new Date());

        Timestamp ts = Timestamp.valueOf("9999-5-2 10:37:36");
        System.out.println(ts);
        System.out.println("0:0:0:0:0:0:0:1".length());
    }
}
